package com.alivehex.physensor;


/*
#define SYNC_HEADER		(uint16_t)0x8579
#define CMD_RESP_MARK	0x8000

//****************************************
//	Cmd  = CMD_ENABLE_TEMP
//	Data = None
//****************************************
#define CMD_ENABLE_TEMP		0x0002
#define CMD_DISABLE_TEMP	0x4002

//****************************************
//	Cmd  = CMD_ENABLE_ADCDAT
//	Data[0] = Average Times
//  Data[1] = Average Times Shift
//  Data[2] = Pipe Deep
//****************************************
#define CMD_ENABLE_ADCDAT	0x0004
#define CMD_DISABLE_ADCDAT	0x4004

//****************************************
//	Cmd  = CMD_ENABLE_EXTIT
//	Data = None
//****************************************
#define CMD_ENABLE_EXTIT	0x0008
#define CMD_DISABLE_EXTIT	0x4008

//****************************************
//	Cmd  = CMD_AXIS_CORRECT
//	Data[0] = Axis: 'X' or 'Y' or 'Z' 
//  Data[1] = +1G: Value
//  Data[2] = -1G: Value
//	Data[3] = Range: 1500 or 6000 mG
//****************************************
#define CMD_AXIS_CORRECT	0x0020

//****************************************
//	Cmd  = CMD_X | CMD_RESP_MARK
//	Data[0] = Result
//****************************************
#define CMD_RESULT_OK		0x0000
#define CMD_RESULT_ERROR	0xFFFF

//****************************************
//	Data[0] = Tempreture Value
//****************************************
#define SENSOR_DAT_TEMP		0x0040

//*************************************************************
//	Data[0] = Int type([CS]0, [LASE]1, 2, 3) | Line Value(0, 1)
//  Data[1] = Time Mark LSB in MS
//  Data[2] = Time Mark MSB in MS
//*************************************************************
#define SENSOR_DAT_EINT		0x0080

//*************************************************************
//	Data[0] = x
//  Data[1] = y
//  Data[2] = z
//*************************************************************
#define SENSOR_DAT_ADCV		0x0200


typedef struct {
	uint16_t SYNC;
	uint16_t Type;
	uint16_t Data[3];
} Sensor_Data_t;


typedef struct {
	uint16_t SYNC;
	uint16_t Cmd;
	uint16_t Data[8];
	uint16_t CheckSum;
} Sensor_Package_t;
 */
public class Command {
	static final byte SYNC_HEADER0 		= (byte)0x85;
	static final byte SYNC_HEADER1 		= (byte)0x79;
	static final byte CMD_DISABLE_MASK 	= (byte)0x80;
	static final byte CMD_ENABLE_TEMP  	= (byte)0x01;
	static final byte CMD_ENABLE_GRAVITY = (byte)0x01;
	
}
